-- GENERATED SPELL FOR [Thrallmar Wolf Rider] --


function spell0_16599(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16599', 5299, 1)
end

function spell1_16599(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16599', 2342, 1)
end

function Sorts_16599(pUnit, Event)
local choix_sorts_16599 = math.random(0, 1)
if choix_sorts_16599 == 0 then
pUnit:RegisterEvent('spell0_16599', 1, 1)
end
if choix_sorts_16599 == 1 then
pUnit:RegisterEvent('spell1_16599', 1, 1)
end
end

function mob16599_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16599', math.random(1500, 3000), 1)
end

function mob16599_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16599_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16599_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16599, 1, 'mob16599_Action')
RegisterUnitEvent(16599, 2, 'mob16599_Leave')
RegisterUnitEvent(16599, 3, 'mob16599_Kill')
RegisterUnitEvent(16599, 4, 'mob16599_Die')
